home *** CD-ROM | disk | FTP | other *** search
Java Source | 2000-09-08 | 271 b | 12 lines |
- class TwoPoints {
- public static void main(String args[]) {
- Point p1 = new Point();
- Point p2 = new Point();
- p1.x = 10;
- p1.y = 20;
- p2.x = 42;
- p2.y = 99;
- System.out.println("x = " + p1.x + " y = " + p1.y);
- System.out.println("x = " + p2.x + " y = " + p2.y);
- } }
-